<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('【请填写功能名称】列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <input type="hidden" th:object="${matDetailss}">
                <form id="formId">

                </form>
            </div>
            <div class="btn-group-sm" id="toolbar" role="group">
<!--                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="ruoyi:inventory:add">-->
<!--                    <i class="fa fa-plus"></i> 添加-->
<!--                </a>-->
<!--                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="ruoyi:inventory:edit">-->
<!--                    <i class="fa fa-edit"></i> 修改-->
<!--                </a>-->
<!--                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="ruoyi:inventory:remove">-->
<!--                    <i class="fa fa-remove"></i> 删除-->
<!--                </a>-->

            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('ruoyi:inventory:edit')}]];
        var removeFlag = [[${@permission.hasPermi('ruoyi:inventory:remove')}]];
        var prefix = ctx + "ruoyi/purchaseplan";
        var matDetail=[[*{matDetailss}]]
        $(function() {
            var options = {
                url: prefix + "/locals",
                modalName: "本地库存",
                method: 'post',
                sidePagination: "server",
                contentType: "application/x-www-form-urlencoded",
                queryParams: {
                    tName:matDetail
                },
                columns: [{
                },
                {
                    field: 'id', 
                    title: 'id',
                    visible: false
                },
                {
                    field: 'tName', 
                    title: '材料名称'
                },
                {
                    field: 'tNum', 
                    title: '材料数量'
                },
                ]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>